
Command line help:


C:\prog\tools\freezip>zip
Copyright (C) 1990-1997 Mark Adler, Richard B. Wales, Jean-loup Gailly,
Onno van der Linden and Kai Uwe Rommel.
Type 'zip -L' for the software License.
Zip 2.2 (November 3rd 1997). Usage:
zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]
  The default action is to add or replace zipfile entries from list, which
  can include the special name - to compress standard input.
  If zipfile and list are omitted, zip compresses stdin to stdout.
  -f   freshen: only changed files  -u   update: only changed or new files
  -d   delete entries in zipfile    -m   move into zipfile (delete files)
  -R   recurse into directories     -j   junk (don't record) directory names
  -0   store only                   -l   convert LF to CR LF (-ll CR LF to LF)
  -1   compress faster              -9   compress better
  -q   quiet operation              -v   verbose operation/print version info
  -c   add one-line comments        -z   add zipfile comment
  -@   read names from stdin        -o   make zipfile as old as latest entry
  -x   exclude the following names  -i   include only the following names
  -F   fix zipfile (-FF try harder) -D   do not add directory entries
  -A   adjust self-extracting exe   -J   junk zipfile prefix (unzipsfx)
  -T   test zipfile integrity       -X   eXclude eXtra file attributes
  -!   use privileges (if granted) to obtain all aspects of WinNT security
  -$   include volume label         -S   include system and hidden files
  -h   show this help               -n   don't compress these suffixes

	
Test in same directory:
	
C:\prog\tools\freezip\zip myTest "freezip.ico" "zip instructions.txt"
	adding: freezip.ico (188 bytes security) (deflated 78%)
  adding: zip instructions.txt (188 bytes security) (deflated 51%)
	
	
Test using full paths everythere. Option -j = don't create directory structure:

"C:\prog\tools\free zip\zip" -j "C:\prog\tools\free zip\myTest zippedFile" "C:\prog\tools\free zip\freezip.ico" "C:\prog\tools\free zip\zip instructions.txt"
  adding: prog/tools/freezip/freezip.ico (188 bytes security) (deflated 78%)
  adding: prog/tools/freezip/zip instructions.txt (188 bytes security) (deflated
 51%)

 
Test using command line adding. To abort adding and actually zip files end command line with ctrl-Z and return:
 
del cmdLineZip.zip
zip -@ -j -9 cmdLineZip
 
C:\prog\tools\free zip>zip -@ -j -9 cmdLineZip
C:\prog\tools\free zip\zip instructions.txt
^Z
updating: zip instructions.txt (188 bytes security) (deflated 54%)


Test using command line arguments -v = verbose.

C:\prog\tools\free zip>zip -rv9X myzip2 install test.txt
updating: test.txt      (in=2637) (out=1142) (deflated 57%)
updating: install/      (in=0) (out=0) (stored 0%)
updating: install/Cgipack67.zip..       (in=121283) (out=120507) (deflated 1%)
updating: install/dsc.zip       (in=14239) (out=14173) (deflated 0%)
updating: install/dscrypt.exe   (in=25088) (out=20920) (deflated 17%)
updating: install/freezip.exe......     (in=253440) (out=242494) (deflated 4%)
updating: install/freezipe.exe..        (in=114176) (out=109190) (deflated 4%)
updating: install/freezips.exe. (in=93184) (out=88566) (deflated 5%)
total bytes=624047, compressed=596992 -> 4% savings
